#pragma once

#include "ParticleBase.h"
#include "PropertyAdhesions.h"
#include "DescriptorParticle.h"

namespace ParticleEngine
{
	class PropertyDirectionTracer
	{
	public:
		PropertyDirectionTracer() :
		Direction(Vec<2, float>(0.f, 0.f)),
		DirectorFound(false)
		{}

		Vec<2, float> Direction;
		size_t DirectorFound = false;

		void Sole(ParticleBase* Particle)
		{
			/*
			DirectorFound = false;
			for (size_t i = 0; i < Particle->Adhesions->AdhesionCount; i++)
			{
				if (Particle->Adhesions->Adhesion[i]->Descriptor->Name == "Director")
				{
					Direction -= (Particle->Pos - Particle->Adhesions->Adhesion[i]->Pos);
					DirectorFound = true;
				}
			}
			if (DirectorFound)
				Direction.Normalize();
			else
				Direction = Vec<2, float>(0.f, 0.f);
				*/
		}

	};
}